/*******************************************************************************
* @file		: uiframework.c
* @author	: IMS Systems LAB & Technical Marketing
* @version	: V1.0.0
* @date		: 6-June-2013
* @brief	: Screen Code
*******************************************************************************/
/* @attention
*
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
*
* <h2><center>&copy; COPYRIGHT 2013 STMicroelectronics</center></h2>
*******************************************************************************
*/ 
/*includes----------------------------------------------------------------------*/
#include "uiframework.h"
#include "uiappuser.h"
#include "float.h"
#include "LcdHal.h"
#include "TscHal.h"
#include "pictures.h"

GL_Page_TypeDef *CurrentScreen;

/** @addtogroup Embedded_GUI_Example
  * @{
  */

/** @defgroup UI_Framework
  * @brief This file contains functions to configure the screens and controls
  * @{
  */

/* External variables ----------------------------------------------------------*/
/* Private typedef -------------------------------------------------------------*/
/* Private defines -------------------------------------------------------------*/
/* Private macros --------------------------------------------------------------*/
/* Private variables -----------------------------------------------------------*/
GL_Page_TypeDef Main;
GL_Page_TypeDef MenuEclairage;
GL_Page_TypeDef ConfigEclairage;
GL_Page_TypeDef MenuClock;
GL_Page_TypeDef ConfigClock;
GL_Page_TypeDef MenuOscillateur;
GL_Page_TypeDef MenuOsmolateur;
GL_Page_TypeDef MenuVentilateur;
GL_Page_TypeDef IntroPage;
/* Private function prototypes -------------------------------------------------*/
/* Private functions -----------------------------------------------------------*/
/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_Main() 
{ 

	GL_PageControls_TypeDef* DesignButton01= NewButton(1,"Menu",Main_DesignButton01_Click);
	GL_PageControls_TypeDef* DesignIcon02= NewIcon (2,DesignIcon02_Image,32,32,Main_DesignIcon02_Click);
	GL_PageControls_TypeDef* DesignIcon03= NewIcon (3,DesignIcon03_Image,32,32,Main_DesignIcon03_Click);
	GL_PageControls_TypeDef* DesignLabel03= NewLabel(4,"Temperature eau :",GL_HORIZONTAL,GL_FONT_SMALL,DesignLabel03Color);
	GL_PageControls_TypeDef* DesignLabel04= NewLabel(5,"26.0°C",GL_HORIZONTAL,GL_FONT_SMALL,DesignLabel04Color);
	Create_PageObj( &Main ); 
	AddPageControlObj(55,208,DesignButton01,&Main);
	AddPageControlObj(313,5,DesignIcon02,&Main);
	AddPageControlObj(276,4,DesignIcon03,&Main);
	AddPageControlObj(311,64,DesignLabel03,&Main);
	AddPageControlObj(167,64,DesignLabel04,&Main);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_MenuEclairage() 
{ 

	GL_PageControls_TypeDef* DesignButton09= NewButton(6,"Reglage eclairage",MenuEclairage_DesignButton09_Click);
	GL_PageControls_TypeDef* RightArrow= NewButton(7,"->",MenuEclairage_RightArrow_Click);
	GL_PageControls_TypeDef* LeftArrow= NewButton(8,"<-",MenuEclairage_LeftArrow_Click);
	GL_PageControls_TypeDef* DesignButton05= NewButton(9,"Retour",MenuEclairage_DesignButton05_Click);
	GL_PageControls_TypeDef* DesignIcon06= NewIcon (10,DesignIcon06_Image,128,128,MenuEclairage_DesignIcon06_Click);
	Create_PageObj( &MenuEclairage ); 
	AddPageControlObj(235,160,DesignButton09,&MenuEclairage);
	AddPageControlObj(39,104,RightArrow,&MenuEclairage);
	AddPageControlObj(311,104,LeftArrow,&MenuEclairage);
	AddPageControlObj(71,208,DesignButton05,&MenuEclairage);
	AddPageControlObj(223,24,DesignIcon06,&MenuEclairage);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_ConfigEclairage() 
{ 

	GL_PageControls_TypeDef* DesignLabel09= NewLabel(11,"Minute :",GL_HORIZONTAL,GL_FONT_SMALL,DesignLabel09Color);
	GL_PageControls_TypeDef* DesignLabel08= NewLabel(12,"Heure  :",GL_HORIZONTAL,GL_FONT_SMALL,DesignLabel08Color);
	GL_PageControls_TypeDef* DesignComboBoxStopMinutes= NewComboBoxGrp(13);
	GL_PageControls_TypeDef* DesignComboBoxStopHours= NewComboBoxGrp(14);
	GL_PageControls_TypeDef* ButtonRetourConfigEclairage= NewButton(15,"Retour",ConfigEclairage_ButtonRetourConfigEclairage_Click);
	GL_PageControls_TypeDef* DesignLabel02= NewLabel(16,"Allumage :",GL_HORIZONTAL,GL_FONT_BIG,DesignLabel02Color);
	GL_PageControls_TypeDef* DesignLabel05= NewLabel(17,"Minute :",GL_HORIZONTAL,GL_FONT_SMALL,DesignLabel05Color);
	GL_PageControls_TypeDef* DesignLabel06= NewLabel(18,"Heure  :",GL_HORIZONTAL,GL_FONT_SMALL,DesignLabel06Color);
	GL_PageControls_TypeDef* DesignComboBoxStartMinutes= NewComboBoxGrp(19);
	GL_PageControls_TypeDef* DesignComboBoxStartHours= NewComboBoxGrp(20);
	GL_PageControls_TypeDef* DesignLabel07= NewLabel(21,"Extinction :",GL_HORIZONTAL,GL_FONT_BIG,DesignLabel07Color);
	Create_PageObj( &ConfigEclairage ); 
	AddPageControlObj(287,160,DesignLabel09,&ConfigEclairage);
	AddPageControlObj(287,136,DesignLabel08,&ConfigEclairage);
	AddPageControlObj( 199,152,DesignComboBoxStopMinutes,&ConfigEclairage);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"0",ConfigEclairage_DesignComboBoxStopMinutes_0_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"1",ConfigEclairage_DesignComboBoxStopMinutes_1_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"2",ConfigEclairage_DesignComboBoxStopMinutes_2_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"3",ConfigEclairage_DesignComboBoxStopMinutes_3_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"4",ConfigEclairage_DesignComboBoxStopMinutes_4_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"5",ConfigEclairage_DesignComboBoxStopMinutes_5_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"6",ConfigEclairage_DesignComboBoxStopMinutes_6_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"7",ConfigEclairage_DesignComboBoxStopMinutes_7_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"8",ConfigEclairage_DesignComboBoxStopMinutes_8_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"9",ConfigEclairage_DesignComboBoxStopMinutes_9_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"10",ConfigEclairage_DesignComboBoxStopMinutes_10_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"11",ConfigEclairage_DesignComboBoxStopMinutes_11_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"12",ConfigEclairage_DesignComboBoxStopMinutes_12_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"13",ConfigEclairage_DesignComboBoxStopMinutes_13_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"14",ConfigEclairage_DesignComboBoxStopMinutes_14_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"15",ConfigEclairage_DesignComboBoxStopMinutes_15_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"16",ConfigEclairage_DesignComboBoxStopMinutes_16_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"17",ConfigEclairage_DesignComboBoxStopMinutes_17_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"18",ConfigEclairage_DesignComboBoxStopMinutes_18_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"19",ConfigEclairage_DesignComboBoxStopMinutes_19_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"20",ConfigEclairage_DesignComboBoxStopMinutes_20_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"21",ConfigEclairage_DesignComboBoxStopMinutes_21_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"22",ConfigEclairage_DesignComboBoxStopMinutes_22_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"23",ConfigEclairage_DesignComboBoxStopMinutes_23_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"24",ConfigEclairage_DesignComboBoxStopMinutes_24_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"25",ConfigEclairage_DesignComboBoxStopMinutes_25_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"26",ConfigEclairage_DesignComboBoxStopMinutes_26_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"27",ConfigEclairage_DesignComboBoxStopMinutes_27_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"28",ConfigEclairage_DesignComboBoxStopMinutes_28_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"29",ConfigEclairage_DesignComboBoxStopMinutes_29_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"30",ConfigEclairage_DesignComboBoxStopMinutes_30_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"31",ConfigEclairage_DesignComboBoxStopMinutes_31_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"32",ConfigEclairage_DesignComboBoxStopMinutes_32_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"33",ConfigEclairage_DesignComboBoxStopMinutes_33_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"34",ConfigEclairage_DesignComboBoxStopMinutes_34_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"35",ConfigEclairage_DesignComboBoxStopMinutes_35_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"36",ConfigEclairage_DesignComboBoxStopMinutes_36_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"37",ConfigEclairage_DesignComboBoxStopMinutes_37_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"38",ConfigEclairage_DesignComboBoxStopMinutes_38_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"39",ConfigEclairage_DesignComboBoxStopMinutes_39_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"40",ConfigEclairage_DesignComboBoxStopMinutes_40_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"41",ConfigEclairage_DesignComboBoxStopMinutes_41_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"42",ConfigEclairage_DesignComboBoxStopMinutes_42_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"43",ConfigEclairage_DesignComboBoxStopMinutes_43_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"44",ConfigEclairage_DesignComboBoxStopMinutes_44_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"45",ConfigEclairage_DesignComboBoxStopMinutes_45_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"46",ConfigEclairage_DesignComboBoxStopMinutes_46_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"47",ConfigEclairage_DesignComboBoxStopMinutes_47_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"48",ConfigEclairage_DesignComboBoxStopMinutes_48_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"49",ConfigEclairage_DesignComboBoxStopMinutes_49_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"50",ConfigEclairage_DesignComboBoxStopMinutes_50_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"51",ConfigEclairage_DesignComboBoxStopMinutes_51_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"52",ConfigEclairage_DesignComboBoxStopMinutes_52_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"53",ConfigEclairage_DesignComboBoxStopMinutes_53_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"54",ConfigEclairage_DesignComboBoxStopMinutes_54_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"55",ConfigEclairage_DesignComboBoxStopMinutes_55_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"56",ConfigEclairage_DesignComboBoxStopMinutes_56_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"57",ConfigEclairage_DesignComboBoxStopMinutes_57_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"58",ConfigEclairage_DesignComboBoxStopMinutes_58_Selected);
	AddComboOption (DesignComboBoxStopMinutes->objPTR,"59",ConfigEclairage_DesignComboBoxStopMinutes_59_Selected);
	AddPageControlObj( 199,128,DesignComboBoxStopHours,&ConfigEclairage);
	AddComboOption (DesignComboBoxStopHours->objPTR,"0",ConfigEclairage_DesignComboBoxStopHours_0_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"1",ConfigEclairage_DesignComboBoxStopHours_1_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"2",ConfigEclairage_DesignComboBoxStopHours_2_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"3",ConfigEclairage_DesignComboBoxStopHours_3_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"4",ConfigEclairage_DesignComboBoxStopHours_4_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"5",ConfigEclairage_DesignComboBoxStopHours_5_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"6",ConfigEclairage_DesignComboBoxStopHours_6_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"7",ConfigEclairage_DesignComboBoxStopHours_7_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"8",ConfigEclairage_DesignComboBoxStopHours_8_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"9",ConfigEclairage_DesignComboBoxStopHours_9_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"10",ConfigEclairage_DesignComboBoxStopHours_10_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"11",ConfigEclairage_DesignComboBoxStopHours_11_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"12",ConfigEclairage_DesignComboBoxStopHours_12_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"13",ConfigEclairage_DesignComboBoxStopHours_13_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"14",ConfigEclairage_DesignComboBoxStopHours_14_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"15",ConfigEclairage_DesignComboBoxStopHours_15_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"16",ConfigEclairage_DesignComboBoxStopHours_16_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"17",ConfigEclairage_DesignComboBoxStopHours_17_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"18",ConfigEclairage_DesignComboBoxStopHours_18_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"19",ConfigEclairage_DesignComboBoxStopHours_19_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"20",ConfigEclairage_DesignComboBoxStopHours_20_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"21",ConfigEclairage_DesignComboBoxStopHours_21_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"22",ConfigEclairage_DesignComboBoxStopHours_22_Selected);
	AddComboOption (DesignComboBoxStopHours->objPTR,"23",ConfigEclairage_DesignComboBoxStopHours_23_Selected);
	AddPageControlObj(71,208,ButtonRetourConfigEclairage,&ConfigEclairage);
	AddPageControlObj(311,8,DesignLabel02,&ConfigEclairage);
	AddPageControlObj(287,72,DesignLabel05,&ConfigEclairage);
	AddPageControlObj(287,48,DesignLabel06,&ConfigEclairage);
	AddPageControlObj( 199,64,DesignComboBoxStartMinutes,&ConfigEclairage);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"0",ConfigEclairage_DesignComboBoxStartMinutes_0_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"1",ConfigEclairage_DesignComboBoxStartMinutes_1_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"2",ConfigEclairage_DesignComboBoxStartMinutes_2_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"3",ConfigEclairage_DesignComboBoxStartMinutes_3_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"4",ConfigEclairage_DesignComboBoxStartMinutes_4_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"5",ConfigEclairage_DesignComboBoxStartMinutes_5_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"6",ConfigEclairage_DesignComboBoxStartMinutes_6_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"7",ConfigEclairage_DesignComboBoxStartMinutes_7_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"8",ConfigEclairage_DesignComboBoxStartMinutes_8_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"9",ConfigEclairage_DesignComboBoxStartMinutes_9_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"10",ConfigEclairage_DesignComboBoxStartMinutes_10_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"11",ConfigEclairage_DesignComboBoxStartMinutes_11_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"12",ConfigEclairage_DesignComboBoxStartMinutes_12_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"13",ConfigEclairage_DesignComboBoxStartMinutes_13_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"14",ConfigEclairage_DesignComboBoxStartMinutes_14_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"15",ConfigEclairage_DesignComboBoxStartMinutes_15_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"16",ConfigEclairage_DesignComboBoxStartMinutes_16_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"17",ConfigEclairage_DesignComboBoxStartMinutes_17_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"18",ConfigEclairage_DesignComboBoxStartMinutes_18_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"19",ConfigEclairage_DesignComboBoxStartMinutes_19_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"20",ConfigEclairage_DesignComboBoxStartMinutes_20_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"21",ConfigEclairage_DesignComboBoxStartMinutes_21_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"22",ConfigEclairage_DesignComboBoxStartMinutes_22_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"23",ConfigEclairage_DesignComboBoxStartMinutes_23_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"24",ConfigEclairage_DesignComboBoxStartMinutes_24_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"25",ConfigEclairage_DesignComboBoxStartMinutes_25_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"26",ConfigEclairage_DesignComboBoxStartMinutes_26_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"27",ConfigEclairage_DesignComboBoxStartMinutes_27_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"28",ConfigEclairage_DesignComboBoxStartMinutes_28_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"29",ConfigEclairage_DesignComboBoxStartMinutes_29_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"30",ConfigEclairage_DesignComboBoxStartMinutes_30_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"31",ConfigEclairage_DesignComboBoxStartMinutes_31_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"32",ConfigEclairage_DesignComboBoxStartMinutes_32_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"33",ConfigEclairage_DesignComboBoxStartMinutes_33_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"34",ConfigEclairage_DesignComboBoxStartMinutes_34_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"35",ConfigEclairage_DesignComboBoxStartMinutes_35_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"36",ConfigEclairage_DesignComboBoxStartMinutes_36_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"37",ConfigEclairage_DesignComboBoxStartMinutes_37_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"38",ConfigEclairage_DesignComboBoxStartMinutes_38_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"39",ConfigEclairage_DesignComboBoxStartMinutes_39_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"40",ConfigEclairage_DesignComboBoxStartMinutes_40_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"41",ConfigEclairage_DesignComboBoxStartMinutes_41_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"42",ConfigEclairage_DesignComboBoxStartMinutes_42_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"43",ConfigEclairage_DesignComboBoxStartMinutes_43_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"44",ConfigEclairage_DesignComboBoxStartMinutes_44_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"45",ConfigEclairage_DesignComboBoxStartMinutes_45_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"46",ConfigEclairage_DesignComboBoxStartMinutes_46_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"47",ConfigEclairage_DesignComboBoxStartMinutes_47_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"48",ConfigEclairage_DesignComboBoxStartMinutes_48_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"49",ConfigEclairage_DesignComboBoxStartMinutes_49_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"50",ConfigEclairage_DesignComboBoxStartMinutes_50_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"51",ConfigEclairage_DesignComboBoxStartMinutes_51_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"52",ConfigEclairage_DesignComboBoxStartMinutes_52_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"53",ConfigEclairage_DesignComboBoxStartMinutes_53_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"54",ConfigEclairage_DesignComboBoxStartMinutes_54_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"55",ConfigEclairage_DesignComboBoxStartMinutes_55_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"56",ConfigEclairage_DesignComboBoxStartMinutes_56_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"57",ConfigEclairage_DesignComboBoxStartMinutes_57_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"58",ConfigEclairage_DesignComboBoxStartMinutes_58_Selected);
	AddComboOption (DesignComboBoxStartMinutes->objPTR,"59",ConfigEclairage_DesignComboBoxStartMinutes_59_Selected);
	AddPageControlObj( 199,40,DesignComboBoxStartHours,&ConfigEclairage);
	AddComboOption (DesignComboBoxStartHours->objPTR,"0",ConfigEclairage_DesignComboBoxStartHours_0_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"1",ConfigEclairage_DesignComboBoxStartHours_1_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"2",ConfigEclairage_DesignComboBoxStartHours_2_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"3",ConfigEclairage_DesignComboBoxStartHours_3_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"4",ConfigEclairage_DesignComboBoxStartHours_4_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"5",ConfigEclairage_DesignComboBoxStartHours_5_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"6",ConfigEclairage_DesignComboBoxStartHours_6_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"7",ConfigEclairage_DesignComboBoxStartHours_7_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"8",ConfigEclairage_DesignComboBoxStartHours_8_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"9",ConfigEclairage_DesignComboBoxStartHours_9_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"10",ConfigEclairage_DesignComboBoxStartHours_10_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"11",ConfigEclairage_DesignComboBoxStartHours_11_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"12",ConfigEclairage_DesignComboBoxStartHours_12_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"13",ConfigEclairage_DesignComboBoxStartHours_13_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"14",ConfigEclairage_DesignComboBoxStartHours_14_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"15",ConfigEclairage_DesignComboBoxStartHours_15_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"16",ConfigEclairage_DesignComboBoxStartHours_16_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"17",ConfigEclairage_DesignComboBoxStartHours_17_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"18",ConfigEclairage_DesignComboBoxStartHours_18_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"19",ConfigEclairage_DesignComboBoxStartHours_19_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"20",ConfigEclairage_DesignComboBoxStartHours_20_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"21",ConfigEclairage_DesignComboBoxStartHours_21_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"22",ConfigEclairage_DesignComboBoxStartHours_22_Selected);
	AddComboOption (DesignComboBoxStartHours->objPTR,"23",ConfigEclairage_DesignComboBoxStartHours_23_Selected);
	AddPageControlObj(311,96,DesignLabel07,&ConfigEclairage);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_MenuClock() 
{ 

	GL_PageControls_TypeDef* DesignButton10= NewButton(22,"Retour",MenuClock_DesignButton10_Click);
	GL_PageControls_TypeDef* DesignButton08= NewButton(23,"->",MenuClock_DesignButton08_Click);
	GL_PageControls_TypeDef* DesignButton04= NewButton(24,"<-",MenuClock_DesignButton04_Click);
	GL_PageControls_TypeDef* DesignButton03= NewButton(25,"Reglage Heure",MenuClock_DesignButton03_Click);
	Create_PageObj( &MenuClock ); 
	AddPageControlObj(71,208,DesignButton10,&MenuClock);
	AddPageControlObj(39,104,DesignButton08,&MenuClock);
	AddPageControlObj(311,104,DesignButton04,&MenuClock);
	AddPageControlObj(219,160,DesignButton03,&MenuClock);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_ConfigClock() 
{ 

	GL_PageControls_TypeDef* DesignButton11= NewButton(26,"Retour",ConfigClock_DesignButton11_Click);
	Create_PageObj( &ConfigClock ); 
	AddPageControlObj(71,208,DesignButton11,&ConfigClock);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_MenuOscillateur() 
{ 

	GL_PageControls_TypeDef* DesignButton12= NewButton(27,"Reglage Oscillateur",MenuOscillateur_DesignButton12_Click);
	GL_PageControls_TypeDef* DesignButton07= NewButton(28,"->",MenuOscillateur_DesignButton07_Click);
	GL_PageControls_TypeDef* DesignButton06= NewButton(29,"<-",MenuOscillateur_DesignButton06_Click);
	GL_PageControls_TypeDef* DesignButton02= NewButton(30,"Retour",MenuOscillateur_DesignButton02_Click);
	Create_PageObj( &MenuOscillateur ); 
	AddPageControlObj(243,160,DesignButton12,&MenuOscillateur);
	AddPageControlObj(39,104,DesignButton07,&MenuOscillateur);
	AddPageControlObj(311,104,DesignButton06,&MenuOscillateur);
	AddPageControlObj(71,208,DesignButton02,&MenuOscillateur);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_MenuOsmolateur() 
{ 

	GL_PageControls_TypeDef* DesignButton16= NewButton(31,"Reglage Osmolateur",MenuOsmolateur_DesignButton16_Click);
	GL_PageControls_TypeDef* DesignButton15= NewButton(32,"Retour",MenuOsmolateur_DesignButton15_Click);
	GL_PageControls_TypeDef* DesignButton14= NewButton(33,"->",MenuOsmolateur_DesignButton14_Click);
	GL_PageControls_TypeDef* DesignButton13= NewButton(34,"<-",MenuOsmolateur_DesignButton13_Click);
	Create_PageObj( &MenuOsmolateur ); 
	AddPageControlObj(239,160,DesignButton16,&MenuOsmolateur);
	AddPageControlObj(71,208,DesignButton15,&MenuOsmolateur);
	AddPageControlObj(39,104,DesignButton14,&MenuOsmolateur);
	AddPageControlObj(311,104,DesignButton13,&MenuOsmolateur);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_MenuVentilateur() 
{ 

	GL_PageControls_TypeDef* DesignButton21= NewButton(35,"Retour",MenuVentilateur_DesignButton21_Click);
	GL_PageControls_TypeDef* DesignButton19= NewButton(36,"Reglage Ventilateur",MenuVentilateur_DesignButton19_Click);
	GL_PageControls_TypeDef* DesignButton18= NewButton(37,"->",MenuVentilateur_DesignButton18_Click);
	GL_PageControls_TypeDef* DesignButton17= NewButton(38,"<-",MenuVentilateur_DesignButton17_Click);
	Create_PageObj( &MenuVentilateur ); 
	AddPageControlObj(71,208,DesignButton21,&MenuVentilateur);
	AddPageControlObj(243,160,DesignButton19,&MenuVentilateur);
	AddPageControlObj(39,104,DesignButton18,&MenuVentilateur);
	AddPageControlObj(311,104,DesignButton17,&MenuVentilateur);
}


/**
  * @brief Create and configure screen object
  * @note This control creates the screen object and configures contained controls
  * @param None
  * @retval None
  */
void Create_IntroPage() 
{ 

	GL_PageControls_TypeDef* StartButton= NewButton(39,"Demarer",IntroPage_StartButton_Click);
	GL_PageControls_TypeDef* DesignIcon01= NewIcon (40,DesignIcon01_Image,320,240,IntroPage_DesignIcon01_Click);
	Create_PageObj( &IntroPage ); 
	AddPageControlObj(79,208,StartButton,&IntroPage);
	AddPageControlObj(319,0,DesignIcon01,&IntroPage);
}




/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_Main()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	Main.ShowPage(&Main, GL_TRUE);
	CurrentScreen=&Main; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_MenuEclairage()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	MenuEclairage.ShowPage(&MenuEclairage, GL_TRUE);
	CurrentScreen=&MenuEclairage; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_ConfigEclairage()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	ConfigEclairage.ShowPage(&ConfigEclairage, GL_TRUE);
	CurrentScreen=&ConfigEclairage; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_MenuClock()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	MenuClock.ShowPage(&MenuClock, GL_TRUE);
	CurrentScreen=&MenuClock; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_ConfigClock()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	ConfigClock.ShowPage(&ConfigClock, GL_TRUE);
	CurrentScreen=&ConfigClock; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_MenuOscillateur()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	MenuOscillateur.ShowPage(&MenuOscillateur, GL_TRUE);
	CurrentScreen=&MenuOscillateur; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_MenuOsmolateur()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	MenuOsmolateur.ShowPage(&MenuOsmolateur, GL_TRUE);
	CurrentScreen=&MenuOsmolateur; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_MenuVentilateur()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	MenuVentilateur.ShowPage(&MenuVentilateur, GL_TRUE);
	CurrentScreen=&MenuVentilateur; 
} 

/**
  * @brief Show screen object
  * @note This control displayed the specified screen object
  * @param None
  * @retval None
  */
void Show_IntroPage()
{ 
	if(CurrentScreen!=GL_NULL)
	{
		CurrentScreen->ShowPage(CurrentScreen,GL_FALSE);
	}
	GL_Clear(0);
	GL_SetTextColor(63488);
	IntroPage.ShowPage(&IntroPage, GL_TRUE);
	CurrentScreen=&IntroPage; 
} 

/**
  * @brief Controls home screen
  * @param None
  * @retval None
  */
void Show_HomeScreen()
{
	Create_Main();
	Create_MenuEclairage();
	Create_ConfigEclairage();
	Create_MenuClock();
	Create_ConfigClock();
	Create_MenuOscillateur();
	Create_MenuOsmolateur();
	Create_MenuVentilateur();
	Create_IntroPage();
	CurrentScreen = &Main;
	GL_Clear(0);
	GL_SetTextColor(63488);
	Main.ShowPage(&Main,GL_TRUE);
}

/**
  * @}
  */

/**
  * @}
  */


/******************* (C) COPYRIGHT 2013 STMicroelectronics *****END OF FILE****/ 

